package com.patterns.demo.Iterator;

import com.patterns.demo.Iterator.collection.Collection;
import com.patterns.demo.Iterator.collection.MyCollection;
import com.patterns.demo.Iterator.iterator.Iterator;

/**
 * Author: SamGroves
 * <p>
 * Description:
 * <p>
 * Date: 2017/12/19
 */
public class Test {

    public static void main(String[] args) {
        Collection collection = new MyCollection();
        Iterator it = collection.iterator();

        while (it.hasNext()) {
            System.out.println(it.next());
        }
    }
}
